package jyj.springmvc.learning.controller;

import jyj.springmvc.learning.entity.User;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author 老顽固小可爱
 * @Date 2022/12/11 22:52
 * @Version 1.0
 */
public class UserController {
    /**
     * 通过实体类获取请求参数
     *
     * @param user
     * @return
     */
    @RequestMapping("/getUser")
    public String getUser(User user) {
        System.out.println("userId：" + user.getUserId());
        System.out.println("userName：" + user.getUserName());
        System.out.println("password：" + user.getPassword());
        return "success";
    }
}
